<%@ page contentType="text/html; charset=UTF-8" import="java.util.*" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>添加任务</title>
<link rel="stylesheet" rev="stylesheet" href="../css/files/style.css" type="text/css" media="all" />


<script language="JavaScript" type="text/javascript">
function tishi()
{
  var a=confirm('数据库中保存有该人员基本信息，您可以修改或保留该信息。');
  if(a!=true)return false;
  window.open("冲突页.htm","","depended=0,alwaysRaised=1,width=800,height=400,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
}

function check()
{
document.getElementById("aa").style.display="";
}


function link(){
alert('保存成功！');
    document.getElementById("fom").action="xuqiumingxi.htm";
   document.getElementById("fom").submit();
}



</script>
<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
-->
</style>
</head>

<body class="ContentBody">
  <form action="addtask.action" method="post" enctype="multipart/form-data" name="fom" id="fom" target="mainFrame" >
<div class="MainDiv">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >任务添加页面</th>
  </tr>
  <tr>
    <td class="CPanel">
		
		<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
		<tr><td align="left">
		<input type="submit" name="Submit" value="保存" class="button" />　
			
			<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/>
		</td></tr>

		<TR>
			<TD width="100%">
				<fieldset style="height:100%;">
				<legend>添加任务</legend>
					  <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
					 
					  <tr>
					    <td nowrap align="right" width="13%">任务标题:</td>
					    <td width="41%"><input name="name" class="text" style="width:250px" type="text" size="40" />
				        <span class="red"> *</span></td>
					    <td align="right" width="19%">是否重复：</td>
					    <td width="27%">
					    <select name="recurrence">
        <option value="once">一次</option>
        <option value="daily">天</option>
        <option value="weekly">周</option>
        <option value="monthly">月</option>
        <option value="quarterly">季度</option>
        <option value="yearly">年</option>
        </select></td>
					    </tr>
					  <tr>
					   
					    <td align="right">任务创建日期：  
													</td>
					    <td> <script language="javascript" type="text/javascript" src="../datepicker/WdatePicker.js">
</script>										
				<input type="text" name="createTimeStr"
			onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
				class="Wdate" /></td>
				 <td nowrap align="right">任务截止日期：        </td>
					    <td> <script language="javascript" type="text/javascript" src="datepicker/WdatePicker.js">
</script>										
				<input type="text" name="dueDateStr"
			onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
				class="Wdate" /></td>
					  </tr>
					   <tr>
					    <td nowrap align="right">所属项目：
     </td>
					    <td> <select name="projectId">
                         <c:forEach var="project" items="${list}" >
                             <option value="${project.id }">${project.name }</option>
                        </c:forEach>  
        </select></td>
					    <td align="right">优先级:</td>
					    <td>
					     <select name="priority">
        <option value="low">低</option>
        <option value="normal">一般</option>
        <option value="high">高</option>
        </select></td>
					  </tr>
					  <!--  
					  <tr>
					    <td nowrap align="right">标签:</td>
					    <td colspan="3">
					    <input name="tag" class="text" style="width:250px" type="text" size="40" /></td>
					  </tr>
					  -->
					  <tr>
					    <td nowrap align="right">关联任务相关的目标:</td>
					    <td colspan="3">
					    <c:forEach var="target" items="${targetlist}" varStatus="status">
					    <input type="checkbox" name="targetids" value="${target.id}"/>${target.name}
					    </c:forEach>
					    </td>
					  </tr>
					  <tr>
					    <td nowrap align="right">分配任务负责人:</td>
					    <td colspan="3">
					      <c:forEach var="user" items="${userlist}" varStatus="status">
					       <input type="checkbox" name="userids" value="${user.id}"/>${user.firstName}${user.lastName}
					     </c:forEach>
					    </td>
					  </tr>
					  <tr>
					    <td nowrap align="right" height="100px">任务说明:</td>
					    <td ><textarea id="textarea" name="description" rows="6" cols="40"></textarea></td>
					   <td nowrap align="right" height="100px">备注:</td>
					    <td ><textarea id="textarea" name="note" rows="6" cols="40"></textarea></td>
					    </tr>
					  </table>
			 <br />
				</fieldset>			</TD>
		</TR>
		
		</TABLE>
	
	
	 </td>
  </tr>
  

		
		
		
		
		<TR>
			<TD colspan="2" align="center" height="50px">
			<input type="submit" name="Submit" value="保存" class="button" />　
			
			<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/></TD>
		</TR>
		</TABLE>

</div>
</form>
</body>
</html>
